home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 3 / AUCD3.iso / airport / browsers / acornet / archive / archive897 / 000133_owner-acornet@…s.barnet.ac.uk _Wed Aug 27 22:04:32 1997.msg < prev    next >
Internet Message Format  |  1997-08-28  |  4KB

  1. Received: (from majordomo@localhost)
  2.     by odie.barnet.ac.uk (8.8.6/8.8.6) id WAA06979
  3.     for acornet-list; Wed, 27 Aug 1997 22:04:32 +0100
  4. Received: from bluetac.blob.uk (root@ping.demon.co.uk [158.152.166.128])
  5.     by odie.barnet.ac.uk (8.8.6/8.8.6) with ESMTP id WAA06967
  6.     for <acornet@lists.barnet.ac.uk>; Wed, 27 Aug 1997 22:04:05 +0100
  7. Received: from benji.blob.uk (benji.blob.uk [192.168.1.21])
  8.     by bluetac.blob.uk (8.8.6/8.8.5) with SMTP id VAA02082
  9.     for <acornet@lists.barnet.ac.uk>; Wed, 27 Aug 1997 21:45:14 +0100
  10. Received: from loopback ([127.0.0.1]) by benji.blob.uk with SMTP; Wed, 27 Aug 1997 20:44:36 GMT
  11. Date: Wed, 27 Aug 1997 21:34:24 +0100
  12. From: Joseph Heenan <esuvf@csv.warwick.ac.uk>
  13. To: acornet@lists.barnet.ac.uk
  14. Subject: Re: Acornet 0.20 - a few suggestions
  15. Message-ID: <8d6561c047%esuvf@dial1221.dialup.warwick.ac.uk>
  16. In-Reply-To: <ca1e99bd47%snb94r@delenn.ecs.soton.ac.uk>
  17. X-Mailer: Messenger v1.02 for RISC OS
  18. X-Posting-Agent: RISC OS Newsbase 0.59d
  19. Sender: owner-acornet@lists.barnet.ac.uk
  20. Precedence: bulk
  21. Reply-To: acornet@lists.barnet.ac.uk
  22. X-maillist: acornet
  23.  
  24. In message <ca1e99bd47%snb94r@delenn.ecs.soton.ac.uk>
  25.           Stewart Brodie <snb94r@delenn.ecs.soton.ac.uk> wrote:
  26.  
  27. > [bootapps crashing when Acornet is run from
  28. > ADFS::IDEDisc4.Internet.!Acornet ]
  29. > This is a complete stab in the dark, but it's a daft problem that
  30. > I've hit in the past and if it turns out to be your problem too,
  31. > you'll never find it easily :-)
  32. > What rings a bell is the changing of the directory names making it
  33. > work ... Obviously the actually name of the directory cannot affect
  34. > the working of the applications unless that the pathnames have been
  35. > hardwired in.  This would seem to imply that pathnames of a
  36. > particular *length* are causing problems - perhaps when they are an
  37. > exact multiple of four.  Check all the length limited string
  38. > handling in the program.  If, for example, you were to say:
  39. > const int length = strlen(s1);
  40. > char *const p = calloc(1, length);
  41. > memcpy(p, s1, length);
  42. > Then this would work[1] *UNLESS* the length of s1 was an exact multiple of
  43. > four.....
  44. > [snip]
  45.  
  46. I'd be frantically digging round in my source code now, but for
  47. bootapps being a BASIC program. Now I refuse to believe that BASIC
  48. has a bug in it's string handling that could convert
  49. "ADFS::IDEDisc4.$.Internet.Acornet.Resources.!WebHelper" into
  50. ".!WebHelper.!Help" (the error message you see is that file not
  51. found), because it's just too b'zarre. 
  52.  
  53. (I tried putting Acornet in a deeper directory structure too, whilst
  54. testing. Contrary to popular believe, things seemed to work perfectly
  55. until it approached somewhere around the 180 character length, as far
  56. as I could tell)
  57.  
  58. So, for want of something better to blame, I'm guessing that it's
  59. actually a bug in the RiscOS 3.11 filer, of the sort you describe
  60. (triggered by a string that is a multiple of words long give or take
  61. the terminator). The only sure thing I'm not sure of is the trigger
  62. condition - it won't happen when you just filer_boot the file on it's
  63. own, only when it's done in the order bootapps does it, or without
  64. returning to the desktop or some such.
  65.  
  66. I haven't tried very hard to trace the cause, as I feel I'd probably
  67. just drawn a blank, and I also don't seem to be able to reproduce it
  68. on my RiscPC. I think the best we can do is just make people aware of
  69. the problem, and aware of the renaming-the-directory-one-char-shorter
  70. solution.
  71.  
  72. Cheers,
  73.  
  74. Joseph
  75.  
  76. -- 
  77. Joseph Heenan, Coventry, UK
  78. mailto:esuvf@csv.warwick.ac.uk